<html>
<script>
var a = "true";
var b = true;
console.log( "==: "  ,  a == b ); // false
console.log( "===: " , a == b); // false

var c = !!a;

console.log( "==: "  ,  c == b ); // true
console.log( "===: " , c == b); // true

</script>
</html>